package com.boco.pciv.core.mapper;

import java.util.List;
import java.util.Map;

/**
 * Created by CC on 2017/4/26.
 * 数据操作Mapper
 */
public interface PcivBaseMapper<T,ID> {
    void insert(T record);

    Integer delete(ID id);
    Integer deleteByMap(Map<String, Object> map);

    Integer update(T record);

    T queryOne(ID id);
    T queryOneByMap(Map<String, Object> map);

    List<T> queryList(Map<String, Object> map);
    List<T> queryScroll(Map<String, Object> map);
    Integer count(Map<String, Object> map);
}
